package com.lagouhomework;

public class TelData implements Data {//上网套餐类

        int data = 0;//特征上网流量
        int fee = 0;//特征每月资费
        @Override
        public void Data(){
            Type t= Type.big;
            System.out.println("继承后套餐内流量为："+data+"兆");
            System.out.println("套餐卡类型为："+t);
        }
    public void show(){ //行为
        TelData TD=new TelData();
        System.out.println("继承前套餐内流量为："+TD.data+"兆");
        System.out.println("套餐每月费用为："+TD.fee+"元");
        TD.Data();
    }
}
